# coding: utf-8
# @Author: 健聪
# @Description: 文件读写
# @Date: 2024/3/14
# f = open('./demo.txt', mode='w', encoding='utf-8')     # 覆盖原来文件的内容
# f = open('./demo.txt', mode='w+', encoding='utf-8')     # 覆盖原来文件的内容，并能读取内容
# f = open('./demo.txt', mode='a+', encoding='utf-8')    # 追加还能读取
f = open('./demo.txt', mode='a', encoding='utf-8')       # 追加
f.write("ssss")

f.close()
